package com.lagou.bean;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {

    @Reference
    private HelloService helloService;

    public String methodA(String name, int timeToWait) throws InterruptedException {
        return helloService.methodA(name, timeToWait);

    }

    public String methodB(String name, int timeToWait) throws InterruptedException {
        return helloService.methodB(name, timeToWait);

    }

    public String methodC(String name, int timeToWait) throws InterruptedException {
        return helloService.methodC(name, timeToWait);

    }

}